package com.yejiali.backend.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yejiali.backend.entity.Videos;
import com.yejiali.backend.entity.dto.*;
import com.yejiali.backend.entity.vo.VideosVO;
import com.yejiali.backend.response.Response;

import java.util.List;

/**
 * 视频作品表(Videos)表服务接口
 *
 * @author yejiali
 * @since 2025-07-21 15:20:42
 */
public interface VideosService extends IService<Videos>{


    /**
     * 获取视频列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    Response<VideoListDTO> getVideos(int pageNum, int pageSize);

    /**
     * 上传视频
     * @param uploadVideoDTO
     * @return
     */
    Response<String> uploadVideo(UploadVideoDTO uploadVideoDTO);

    /**
     * 获取视频详情
     * @param videoId
     * @return
     */
    Response<VideoDetailDTO> getVideoDetail(Long videoId,Long userId);
    /**
     * 根据目前观看推荐视频
     * @param videoId
     * @return
     */
    Response<List<VideosVO>> recommendVideos(Long videoId);


}
